<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function refresh() {
            document.getElementById('captcha_img').src="/kaptcha?"+Math.random();
        }
    </script>
</head>
<body>
    <form method="post" action="/login">
        <table border="1" cellpadding="0" cellspacing="1" width="700">
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username" id="username"></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="password" id="password"></td>
            </tr>
            <tr>
                <td colspan="2">
                    验证码:  <input type="text" placeholder="请输入验证码" name="validateCode">
                        <img id="captcha_img" alt="点击更换" title="点击更换"
                             onclick="refresh()" src="/kaptcha"/>
                </td>
            </tr>
            <tr>
                <td colspan="2"><input type="checkbox" id="rememberMe" name="rememberMe">记住我</td>
            </tr>
            <tr>
                <td colspan="2"><button type="submit">登录</button></td>
            </tr>
        </table>
    </form>
</body>
</html>